home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / eventi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  2.7 KB  |  101 lines

  1. /* $XConsortium: EventI.h,v 1.14 90/08/20 15:26:28 swick Exp $ */
  2. /* $oHeader: EventI.h,v 1.3 88/08/24 09:21:11 asente Exp $ */
  3.  
  4. /***********************************************************
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. /* 
  29.  * Event.h - exported types and functions for toolkit event handler
  30.  * 
  31.  * Author:    Charles Haynes
  32.  *         Digital Equipment Corporation
  33.  *         Western Software Laboratory
  34.  * Date:    Sun Dec  6 1987
  35.  */
  36.  
  37. #ifndef _Event_h_
  38. #define _Event_h_
  39.  
  40. typedef struct _XtGrabRec  *XtGrabList;
  41.  
  42. extern void _XtEventInitialize(
  43. #if NeedFunctionPrototypes
  44.     void
  45. #endif
  46. );
  47.  
  48. extern void _XtRegisterWindow(
  49. #if NeedFunctionPrototypes
  50.     Window     /* window */,
  51.     Widget     /* widget */
  52. #endif
  53. );
  54.  
  55. extern void _XtUnregisterWindow(
  56. #if NeedFunctionPrototypes
  57.     Window     /* window */,
  58.     Widget     /* widget */
  59. #endif
  60. );
  61.  
  62. typedef struct _XtEventRec {
  63.      XtEventTable    next;
  64.      EventMask        mask;
  65.      Boolean        non_filter;
  66.      Boolean        select;
  67.      Boolean        raw;
  68.      Boolean        async;
  69.      XtEventHandler    proc;
  70.      XtPointer        closure;
  71. } XtEventRec;
  72.  
  73. typedef struct _XtGrabRec {
  74.     XtGrabList next;
  75.     Widget   widget;
  76.     Boolean  exclusive;
  77.     Boolean  spring_loaded;
  78. }XtGrabRec;
  79.  
  80.  
  81. extern void _XtFreeEventTable(
  82. #if NeedFunctionPrototypes
  83.     XtEventTable*    /* event_table */
  84. #endif
  85. );
  86.  
  87. extern Boolean _XtOnGrabList(
  88. #if NeedFunctionPrototypes
  89.     Widget    /* widget */,
  90.     XtGrabRec*    /* grabList */
  91. #endif
  92. );
  93.  
  94. extern void _XtRemoveAllInputs(
  95. #if NeedFunctionPrototypes
  96.     XtAppContext /* app */
  97. #endif
  98. );
  99.  
  100. #endif /* _Event_h_ */
  101.